<template>
  <div class="profile-container">
    <!-- 未登录显示页面start -->
    <not-login
      v-if="!USER_TOKEN"
    />
    <!-- 未登录显示页面end -->

    <!-- 已登录显示页面start -->
    <already-login v-else />
    <!-- 已登录显示页面end -->
  </div>
</template>

<script>
import NotLogin from "./chi-coms/not-login";
import AlreadyLogin from "./chi-coms/already-login";
import { mapState } from 'vuex'

export default {
  name: "Profile",
  components: {
    NotLogin,
    AlreadyLogin
  },
  computed:{
    ...mapState(['USER_TOKEN'])
  },
  data() {
    return {
    };
  },
  methods: {

  }
};
</script>

<style scoped lang="stylus"></style>